import { request } from '@/utils/request.js'

// 获取列表
export function list(data) {
  return request({
    url: `/dossier/list`,
    method: 'get',
	data
  })
}

// 新增
export function add(data) {
  return request({
    url: `/dossier/add`,
    method: 'post',
	data
  })
}

// 删除
export function remove(data) {
  return request({
    url: `/dossier/remove`,
    method: 'post',
	query:true,
	data
  })
}

// 修改
export function update(data) {
  return request({
    url: `/dossier/update`,
    method: 'post',
	data
  })
}


// 
export function one(data) {
  return request({
    url: `/dossier/one`,
    method: 'get',
	data
  })
}
// 当事人详情
export function ones(data) {
  return request({
    url: `/parties/one`,
    method: 'get',
	query:true,
	data
  })
}
// 删除当事人
export function onedelete(data) {
  return request({
    url: `/parties/delete/${data.id}`,
    method: 'post',
	query:true,
  })
}
// 添加当事人
export function addparties(data) {
  return request({
    url: `/parties/add`,
    method: 'post',
	query:true,
	data
  })
}
// 当事人列表
export function getparties(data) {
  return request({
    url: `/parties/list`,
    method: 'get',
	data
  })
}
// 修改当事人列表
export function updateparties(data) {
  return request({
    url: `/parties/update`,
    method: 'post',
	query:true,
	data
  })
}
// 删除当事人列表
export function deleteparties(data) {
  return request({
    url: `/parties/delete`,
    method: 'post',
	data
  })
}
// 添加关联案件
export function relevanceDossier(data) {
  return request({
    url: `/relevanceDossier/add`,
    method: 'post',
	data
  })
}
// 关联案件列表
export function relevancelist(data) {
  return request({
    url: `/relevanceDossier/list`,
    method: 'get',
	data
  })
}
// 解除关联
export function relevancedelete(data) {
  return request({
    url: `/relevanceDossier/delete`,
    method: 'post',
	query:true,
	data
  })
}


